<!DOCTYPE html>


<html lang="en">
  

    <head>
      <meta charset="utf-8" />
        
      <meta
        name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1"
      />
      <title>HDR宕机分析和目前推断 |  朝花夕拾</title>
  <meta name="generator" content="hexo-theme-ayer">
      
      <link rel="shortcut icon" href="/ww.ico" />
       
<link rel="stylesheet" href="/dist/main.css">

      
<link rel="stylesheet" href="/css/fonts/remixicon.css">

      
<link rel="stylesheet" href="/css/custom.css">
 
      <script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
       
 

      <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-bulma@5.0.1/bulma.min.css"
      />
      <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.19/dist/sweetalert2.min.js"></script>

      <!-- mermaid -->
      
      <style>
        .swal2-styled.swal2-confirm {
          font-size: 1.6rem;
        }
      </style>
    </head>
  </html>
</html>


<body>
  <div id="app">
    
      
    <main class="content on">
      <section class="outer">
  <article
  id="post-HDR宕机分析和目前推断"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  HDR宕机分析和目前推断
</h1>
 

      
    </header>
     
    <div class="article-meta">
      <a href="/2023/04/27/HDR%E5%AE%95%E6%9C%BA%E5%88%86%E6%9E%90%E5%92%8C%E7%9B%AE%E5%89%8D%E6%8E%A8%E6%96%AD/" class="article-date">
  <time datetime="2023-04-27T08:33:47.000Z" itemprop="datePublished">2023-04-27</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/GBase8s/">GBase8s</a>
  </div>
  
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> Word count:</span>
            <span class="post-count">2.8k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> Reading time≈</span>
            <span class="post-count">16 min</span>
        </span>
    </span>
</div>
 
    </div>
      
    <div class="tocbot"></div>




  
    <div class="article-entry" itemprop="articleBody">
       
  <h2 id="onlog分析"><a href="#onlog分析" class="headerlink" title="onlog分析"></a>onlog分析</h2><h5 id="02-50-02-创建了表-xrc-callstas-发起"><a href="#02-50-02-创建了表-xrc-callstas-发起" class="headerlink" title="02:50:02 创建了表 xrc_callstas 发起"></a>02:50:02 创建了表 xrc_callstas 发起</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">626a30c  56   BEGIN    144      879 0        04/27/2023 02:50:02 33557870 gbasedbt</span><br><span class="line">626a344  392  BLDCL    144      0  626a30c  6001dc 2048 2048 1536 0 xrc_callstas</span><br><span class="line">626a4cc  132  PTCOLUMN 144      0  626a344  6001dc   7</span><br><span class="line">626a550  52   CHALLOC  144      0  626a4cc  00006:0003195008 800</span><br><span class="line">626a584  56   PTEXTEND 144      0  626a550  6001dc   2047     00006:0003195008</span><br><span class="line">626a5bc  392  BLDCL    144      0  626a584  60022a 28 28 1536 0 idx_xrc_callstas</span><br><span class="line"></span><br><span class="line">addr     len  type     xid      id link</span><br><span class="line">626a744  52   CHALLOC  144      0  626a5bc  00006:0000197703 1c</span><br><span class="line">626a778  56   PTEXTEND 144      0  626a744  60022a   27       00006:0000197703</span><br><span class="line">626a7b0  192  CINDEX   144      0  626a778  60022a   1</span><br><span class="line">626b08c  52   PNLOCKID 144      0  626a7b0  6001dc   6001dc   60021a</span><br><span class="line">626b0c0  52   PNLOCKID 144      0  626b08c  60022a   60022a   60021a</span><br><span class="line">626b0f4  360  HDELETE  144      0  626b0c0  60001a   17302    295</span><br><span class="line">626b25c  72   DELITEM  144      0  626b0f4  60001a   60001a   17302    219   1     12</span><br><span class="line">626b2a4  140  PBDELETE 144      0  626b25c  60001a   12001    77       ffffffff</span><br><span class="line">626b330  532  PBDELETE 144      0  626b2a4  60001a   17401    470      ffffffff</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h5 id="02-50-02-创建表-xrc-callstas-提交"><a href="#02-50-02-创建表-xrc-callstas-提交" class="headerlink" title="02:50:02 创建表 xrc_callstas 提交"></a>02:50:02 创建表 xrc_callstas 提交</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">addr     len  type     xid      id link</span><br><span class="line">628d750  88   ADDITEM  144      0  628d5e0  60001a   60001a   fa01     219   1     27</span><br><span class="line">628d7a8  200  HUPBEF   144      0  628d750  600002   1504     135</span><br><span class="line">628e08c  200  HUPAFT   144      0  628d7a8  600002   1504     135</span><br><span class="line">628e154  48   UNIQID   144      0  628e08c  1000d2   5250</span><br><span class="line">628e184  88   HINSERT  144      0  628e154  1000d2   201      22</span><br><span class="line">628e1dc  72   ADDITEM  144      0  628e184  1000d2   1000d2   201      1     1     12</span><br><span class="line">628e224  80   HINSERT  144      0  628e1dc  1000d3   201      16</span><br><span class="line">628e274  68   ADDITEM  144      0  628e224  1000d3   1000d3   201      1     1     6</span><br><span class="line">628e2b8  80   HINSERT  144      0  628e274  1000d3   202      16</span><br><span class="line">628e308  68   ADDITEM  144      0  628e2b8  1000d3   1000d3   202      1     1     6</span><br><span class="line">628e34c  56   COMMIT   144      0  628e308  04/27/2023 02:50:02</span><br><span class="line"></span><br></pre></td></tr></table></figure>





<h5 id="03-35-01-rename-table-所在事务的-发起"><a href="#03-35-01-rename-table-所在事务的-发起" class="headerlink" title="03:35:01 rename table 所在事务的 发起"></a>03:35:01 rename table 所在事务的 发起</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">65ea060  56   BEGIN    257      879 0        04/27/2023 03:35:01 33565257 gbasedbt</span><br><span class="line">65ea098  360  HDELETE  257      0  65ea060  60001a   e802     295</span><br><span class="line">65ea200  72   DELITEM  257      0  65ea098  60001a   60001a   e802     219   1     12</span><br><span class="line">65ea248  140  PBDELETE 257      0  65ea200  60001a   12001    77       ffffffff</span><br><span class="line">65ea2d4  532  PBDELETE 257      0  65ea248  60001a   e902     470      ffffffff</span><br><span class="line">65ea4e8  864  PBDELETE 257      0  65ea2d4  60001a   e901     801      ffffffff</span><br><span class="line">65eb064  360  HDELETE  257      0  65ea4e8  60001a   e803     295</span><br><span class="line">65eb1cc  72   DELITEM  257      0  65eb064  60001a   60001a   e803     219   1     12</span><br><span class="line"></span><br><span class="line">addr     len  type     xid      id link</span><br><span class="line">65eb214  140  PBDELETE 257      0  65eb1cc  60001a   12002    77       ffffffff</span><br><span class="line">65eb2a0  532  PBDELETE 257      0  65eb214  60001a   ea01     470      ffffffff</span><br><span class="line">65eb4b4  360  HDELETE  257      0  65eb2a0  60001a   e804     295</span><br><span class="line"></span><br></pre></td></tr></table></figure>



<h5 id="03-35-01-rename-table-的发起点"><a href="#03-35-01-rename-table-的发起点" class="headerlink" title="03:35:01 rename table 的发起点"></a>03:35:01 rename table 的发起点</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br></pre></td><td class="code"><pre><span class="line">65ff6b4  692  PTRENAME 257      0  65ff654    60021a xrc_callstas xrc_callstasp2023011700</span><br><span class="line">6600184  52   PNLOCKID 257      0  65ff6b4  600257   60021a   600257</span><br><span class="line">66001b8  52   PNLOCKID 257      0  6600184  600185   60021a   600257</span><br><span class="line">66001ec  52   PNLOCKID 257      0  66001b8  6001f0   60021a   600257</span><br><span class="line">6600220  52   PNLOCKID 257      0  66001ec  6000d9   60021a   600257</span><br><span class="line"></span><br><span class="line">addr     len  type     xid      id link</span><br><span class="line">6600254  52   PNLOCKID 257      0  6600220  600178   60021a   600257</span><br><span class="line">6600288  52   PNLOCKID 257      0  6600254  6001f2   60021a   600257</span><br><span class="line">66002bc  52   PNLOCKID 257      0  6600288  6000eb   60021a   600257</span><br><span class="line">66002f0  52   PNLOCKID 257      0  66002bc  60017d   60021a   600257</span><br><span class="line">6600324  52   PNLOCKID 257      0  66002f0  6001f5   60021a   600257</span><br><span class="line">6600358  52   PNLOCKID 257      0  6600324  6000ee   60021a   600257</span><br><span class="line">660038c  52   PNLOCKID 257      0  6600358  60017f   60021a   600257</span><br><span class="line">66003c0  52   PNLOCKID 257      0  660038c  6001ea   60021a   600257</span><br><span class="line">66003f4  52   PNLOCKID 257      0  66003c0  6000d4   60021a   600257</span><br><span class="line">6600428  52   PNLOCKID 257      0  66003f4  6001dc   60021a   600257</span><br><span class="line">660045c  52   PNLOCKID 257      0  6600428  600120   60021a   600257</span><br><span class="line">6600490  52   PNLOCKID 257      0  660045c  600241   60021a   600257</span><br><span class="line">66004c4  52   PNLOCKID 257      0  6600490  6000aa   60021a   600257</span><br><span class="line">66004f8  52   PNLOCKID 257      0  66004c4  600186   60021a   600257</span><br><span class="line">660052c  52   PNLOCKID 257      0  66004f8  6001fd   60021a   600257</span><br><span class="line">6600560  52   PNLOCKID 257      0  660052c  6000da   60021a   600257</span><br><span class="line">6600594  52   PNLOCKID 257      0  6600560  600179   60021a   600257</span><br><span class="line">66005c8  52   PNLOCKID 257      0  6600594  6001f3   60021a   600257</span><br><span class="line"></span><br><span class="line">addr     len  type     xid      id link</span><br><span class="line">66005fc  52   PNLOCKID 257      0  66005c8  6000ec   60021a   600257</span><br><span class="line">6600630  52   PNLOCKID 257      0  66005fc  60018b   60021a   600257</span><br><span class="line">6600664  52   PNLOCKID 257      0  6600630  6001f6   60021a   600257</span><br><span class="line">6600698  52   PNLOCKID 257      0  6600664  6000ef   60021a   600257</span><br><span class="line">66006cc  52   PNLOCKID 257      0  6600698  600180   60021a   600257</span><br><span class="line">6600700  52   PNLOCKID 257      0  66006cc  6001f7   60021a   600257</span><br><span class="line">6600734  52   PNLOCKID 257      0  6600700  6000e2   60021a   600257</span><br><span class="line">6600768  52   PNLOCKID 257      0  6600734  60022a   60021a   600257</span><br><span class="line">660079c  52   PNLOCKID 257      0  6600768  600219   60021a   600257</span><br><span class="line">66007d0  44   PERASE   257      0  660079c  600241</span><br><span class="line">6601018  376  HDELETE  257      0  66007d0  60001a   f103     310</span><br><span class="line">6601190  88   DELITEM  257      0  6601018  60001a   60001a   f103     219   1     27</span><br><span class="line">66011e8  140  PBDELETE 257      0  6601190  60001a   12006    77       ffffffff</span><br><span class="line">6601274  532  PBDELETE 257      0  66011e8  60001a   f201     470      ffffffff</span><br><span class="line">6601488  864  PBDELETE 257      0  6601274  60001a   f003     801      ffffffff</span><br><span class="line"></span><br></pre></td></tr></table></figure>





<h5 id="03-35-01-rename-table-所在事务的-提交"><a href="#03-35-01-rename-table-所在事务的-提交" class="headerlink" title="03:35:01 rename table 所在事务的 提交"></a>03:35:01 rename table 所在事务的 提交</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">addr     len  type     xid      id link</span><br><span class="line">6611680  88   ADDITEM  257      0  6611508  60001a   60001a   6a03     219   1     27</span><br><span class="line">66116d8  140  PBINSERT 257      0  6611680  60001a   12201    77       ffffffff</span><br><span class="line">6611764  532  PBINSERT 257      0  66116d8  60001a   6b01     470      ffffffff</span><br><span class="line">6612194  376  HINSERT  257      0  6611764  60001a   6a04     310</span><br><span class="line">661230c  88   ADDITEM  257      0  6612194  60001a   60001a   6a04     219   1     27</span><br><span class="line">6612364  80   PBINSERT 257      0  661230c  60001a   12202    18       ffffffff</span><br><span class="line">66123b4  368  HINSERT  257      0  6612364  60001a   6c01     302</span><br><span class="line">6612524  88   ADDITEM  257      0  66123b4  60001a   60001a   6c01     219   1     27</span><br><span class="line">661257c  200  HUPBEF   257      0  6612524  600002   1504     135</span><br><span class="line">6612644  200  HUPAFT   257      0  661257c  600002   1504     135</span><br><span class="line">661270c  56   BEGCOM   257      0  6612644</span><br><span class="line">6612744  52   CHFREE   257      0  661270c  00006:0000081253 1c</span><br><span class="line">6612778  44   ERASE    257      0  6612744  600241</span><br><span class="line">66127a4  56   COMMIT   257      0  6612778  04/27/2023 03:35:01</span><br><span class="line"></span><br></pre></td></tr></table></figure>



<h2 id="online分析"><a href="#online分析" class="headerlink" title="online分析"></a>online分析</h2><h5 id="03-35-09-HDR主库-收到背景离线"><a href="#03-35-09-HDR主库-收到背景离线" class="headerlink" title="03:35:09 HDR主库 收到背景离线"></a>03:35:09 HDR主库 收到背景离线</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">03:35:09  SMX thread is exiting</span><br><span class="line">03:35:09  DR: Receive error</span><br><span class="line">03:35:09  dr_prsend thread : asfcode = -25582: oserr = 4: errstr = : Network connection is broken.</span><br><span class="line"> System error = 4.</span><br><span class="line">03:35:09  DR_ERR set to -1</span><br><span class="line">03:35:09  Checkpoint Completed:  duration was 0 seconds.</span><br><span class="line">03:35:09  Thu Apr 27 - loguniq 879, logpos 0x6640390, timestamp: 0xa4b7772c Interval: 54231</span><br><span class="line"></span><br><span class="line">03:35:09  Maximum server connections 354 </span><br><span class="line">03:35:09  Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 1, Plog used 895, Llog used 524</span><br><span class="line"></span><br><span class="line">03:35:10  DR: Turned off on primary server</span><br><span class="line">03:35:10  DR: Cannot connect to secondary server</span><br><span class="line">03:40:20  DR: Cannot connect to secondary server</span><br><span class="line">03:40:38  Checkpoint Completed:  duration was 0 seconds.</span><br><span class="line">03:40:38  Thu Apr 27 - loguniq 879, logpos 0x6676468, timestamp: 0xa4b80420 Interval: 54232</span><br><span class="line"></span><br><span class="line">03:40:38  Maximum server connections 354 </span><br><span class="line">03:40:38  Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 144, Llog used 54</span><br></pre></td></tr></table></figure>



<h5 id="03-35-01-HDR从库-宕机"><a href="#03-35-01-HDR从库-宕机" class="headerlink" title="03:35:01 HDR从库 宕机"></a>03:35:01 HDR从库 宕机</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">03:35:01  Assert Failed: Exception Caught. Type: MT_EX_OS, Context: mem</span><br><span class="line">03:35:01  GBase Database Server Version 12.10.FC4G1AEE</span><br><span class="line">03:35:01   Who: Session(221866, gbasedbt@sc-cd-gxz-vas_eb-vcrbt-xlgw-db001-002, 71612, 0x48e60e08)</span><br><span class="line">                Thread(221914, sqlexec, 48e34768, 8)</span><br><span class="line">                File: mtex.c Line: 424</span><br><span class="line">03:35:01   Action: Please notify GBASE Techical Support.</span><br><span class="line">03:35:01  stack trace for pid 14127 written to /gbase/tmp/af.66c27ce5</span><br><span class="line">03:35:01   See Also: /gbase/tmp/af.66c27ce5</span><br><span class="line">03:35:06  Exception Caught. Type: MT_EX_OS, Context: mem</span><br><span class="line">03:35:06  Recursive Exception - Server exiting</span><br><span class="line">03:35:07  Fatal error in ADM VP at mt.c:15076</span><br><span class="line">03:35:07  Unexpected virtual processor termination: pid = 14127, exit status = 0x1.</span><br><span class="line">03:35:07  PANIC: Attempting to bring system down</span><br><span class="line">04:03:32  Parameter&#x27;s user-configured value was adjusted. (ALARMPROGRAM)</span><br><span class="line">04:03:32  GBase Database Server Started.</span><br></pre></td></tr></table></figure>



<h2 id="af分析"><a href="#af分析" class="headerlink" title="af分析"></a>af分析</h2><h5 id="引起宕机的会话"><a href="#引起宕机的会话" class="headerlink" title="引起宕机的会话"></a>引起宕机的会话</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line">===========------------- - - - - - -</span><br><span class="line">/gbase/bin/onstat -g ses 221866:</span><br><span class="line">Read-Only (Sec) -- Up 146 days 15:32:45 -- 19028072 Kbytes</span><br><span class="line"></span><br><span class="line">session           effective                            #RSAM    total      used       dynamic </span><br><span class="line">id       user     user      tty      pid      hostname threads  memory     memory     explain </span><br><span class="line">221866   gbasedbt -         -        71612    sc-cd-gx 1        143360     118680     off </span><br><span class="line"></span><br><span class="line">Program :</span><br><span class="line">/gbase/bin/dbaccess</span><br><span class="line"></span><br><span class="line">tid      name     rstcb            flags    curstk   status</span><br><span class="line">221914   sqlexec  48e34768         ---P-R-  1256189680 running-</span><br><span class="line"></span><br><span class="line">Memory pools    count 2</span><br><span class="line">name         class addr              totalsize  freesize   #allocfrag #freefrag </span><br><span class="line">221866       V     4cb9a040         135168     20800      104        16        </span><br><span class="line">221866*O0    V     4cfd4040         8192       3880       2          2         </span><br><span class="line"></span><br><span class="line">name           free       used           name           free       used      </span><br><span class="line">overhead       0          6576           scb            0          144       </span><br><span class="line">opentable      0          5952           filetable      0          1136      </span><br><span class="line">blobio         0          5096           log            0          16536     </span><br><span class="line">temprec        0          22688          keys           0          384       </span><br><span class="line">ralloc         0          23920          gentcb         0          1592      </span><br><span class="line">ostcb          0          2968           sqscb          0          20552     </span><br><span class="line">sql            0          72             hashfiletab    0          552       </span><br><span class="line">osenv          0          2392           sqtcb          0          7784      </span><br><span class="line">fragman        0          336            </span><br><span class="line"></span><br><span class="line">sqscb info</span><br><span class="line">scb              sqscb            optofc   pdqpriority optcompind  directives</span><br><span class="line">4998e4d0         4cfc8028         0        0           0           1         </span><br><span class="line"></span><br><span class="line">Sess       SQL            Current            Iso Lock       SQL  ISAM F.E. </span><br><span class="line">Id         Stmt type      Database           Lvl Mode       ERR  ERR  Vers  Explain    </span><br><span class="line">221866     SELECT         newmin             DR  Not Wait   0    0    9.24  Off        </span><br><span class="line"></span><br><span class="line">Current SQL statement (1) :</span><br><span class="line">  select</span><br><span class="line">    provinceid,callNum,failNum,failtoconfail,auFuncSucc,auFuncTotal,viFuncSucc,</span><br><span class="line">    viFuncTotal from xrc_callstas where dealtime = &#x27;202304270330&#x27; </span><br><span class="line"></span><br><span class="line">Last parsed SQL statement :</span><br><span class="line">  select</span><br><span class="line">    provinceid,callNum,failNum,failtoconfail,auFuncSucc,auFuncTotal,viFuncSucc,</span><br><span class="line">    viFuncTotal from xrc_callstas where dealtime = &#x27;202304270330&#x27; </span><br></pre></td></tr></table></figure>



<h5 id="引起宕机的SQL"><a href="#引起宕机的SQL" class="headerlink" title="引起宕机的SQL"></a>引起宕机的SQL</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">===========------------- - - - - - -</span><br><span class="line">/gbase/bin/onstat -g sql 221866:</span><br><span class="line">Read-Only (Sec) -- Up 146 days 15:32:45 -- 19028072 Kbytes</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">Sess       SQL            Current            Iso Lock       SQL  ISAM F.E. </span><br><span class="line">Id         Stmt type      Database           Lvl Mode       ERR  ERR  Vers  Explain    </span><br><span class="line">221866     SELECT         newmin             DR  Not Wait   0    0    9.24  Off        </span><br><span class="line"></span><br><span class="line">Current SQL statement (1) :</span><br><span class="line">  select</span><br><span class="line">    provinceid,callNum,failNum,failtoconfail,auFuncSucc,auFuncTotal,viFuncSucc,</span><br><span class="line">    viFuncTotal from xrc_callstas where dealtime = &#x27;202304270330&#x27; </span><br><span class="line"></span><br><span class="line">Last parsed SQL statement :</span><br><span class="line">  select</span><br><span class="line">    provinceid,callNum,failNum,failtoconfail,auFuncSucc,auFuncTotal,viFuncSucc,</span><br><span class="line">    viFuncTotal from xrc_callstas where dealtime = &#x27;202304270330&#x27; </span><br></pre></td></tr></table></figure>



<h5 id="xrc-callstas-表的-schema"><a href="#xrc-callstas-表的-schema" class="headerlink" title="xrc_callstas 表的 schema"></a>xrc_callstas 表的 schema</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br></pre></td><td class="code"><pre><span class="line">gbasedbt@sc-cd-gxz-vas_eb-vcrbt-xlgw-db001-001:/home/gbasedbt&gt;dbschema -d  newmin -t xrc_callstas  -ss</span><br><span class="line"></span><br><span class="line">DBSCHEMA Schema Utility       GBASE-SQL Version 12.10.FC4G1AEE</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">&#123; TABLE &quot;gbasedbt&quot;.xrc_callstas row size = 1536 number of columns = 35 index size = 23 ccolnum = 0</span><br><span class="line"> commcol = provinceid,dealtime,callnum,failnum,contifailnum,videonum,audionum,vifunctotal,aufunctotal,vifuncsucc,aufuncsucc,otherfuncsucc,userbgsucc,replayssucc,defbgsucc,caps,capsratio,playchannels,mediachannels,thirdmodtrans,thirdmodsucc,thirdmodfail,prenosupport,xrfileabnormal,callerfreed,calledfreed,callernegofail,callednegofail,negofail,thirdmoderr,mserr,innererr,failtoconfail,nopresupport,abortcontbef &#125;</span><br><span class="line"></span><br><span class="line">create table &quot;gbasedbt&quot;.xrc_callstas </span><br><span class="line">  (</span><br><span class="line">    provinceid char(6) not null ,</span><br><span class="line">    dealtime char(12) not null ,</span><br><span class="line">    callnum integer,</span><br><span class="line">    failnum integer,</span><br><span class="line">    contifailnum integer,</span><br><span class="line">    videonum integer,</span><br><span class="line">    audionum integer,</span><br><span class="line">    vifunctotal varchar(200),</span><br><span class="line">    aufunctotal varchar(200),</span><br><span class="line">    vifuncsucc varchar(200),</span><br><span class="line">    aufuncsucc varchar(200),</span><br><span class="line">    otherfuncsucc integer,</span><br><span class="line">    userbgsucc integer,</span><br><span class="line">    replayssucc integer,</span><br><span class="line">    defbgsucc integer,</span><br><span class="line">    caps integer,</span><br><span class="line">    capsratio decimal(6,2),</span><br><span class="line">    playchannels integer,</span><br><span class="line">    mediachannels integer,</span><br><span class="line">    thirdmodtrans varchar(200),</span><br><span class="line">    thirdmodsucc varchar(200),</span><br><span class="line">    thirdmodfail varchar(200),</span><br><span class="line">    prenosupport integer,</span><br><span class="line">    xrfileabnormal integer,</span><br><span class="line">    callerfreed integer,</span><br><span class="line">    calledfreed integer,</span><br><span class="line">    callernegofail integer,</span><br><span class="line">    callednegofail integer,</span><br><span class="line">    negofail integer,</span><br><span class="line">    thirdmoderr integer,</span><br><span class="line">    mserr integer,</span><br><span class="line">    innererr integer,</span><br><span class="line">    failtoconfail integer,</span><br><span class="line">    nopresupport integer,</span><br><span class="line">    abortcontbef integer</span><br><span class="line">  ) </span><br><span class="line">  fragment by expression </span><br><span class="line">    partition p2023012700 ((dealtime &gt;= &#x27;20230127000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230206000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023020600 ((dealtime &gt;= &#x27;20230206000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230216000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023021600 ((dealtime &gt;= &#x27;20230216000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230226000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023022600 ((dealtime &gt;= &#x27;20230226000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230308000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023030800 ((dealtime &gt;= &#x27;20230308000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230318000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023031800 ((dealtime &gt;= &#x27;20230318000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230328000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023032800 ((dealtime &gt;= &#x27;20230328000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230407000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023040700 ((dealtime &gt;= &#x27;20230407000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230417000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023041700 ((dealtime &gt;= &#x27;20230417000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230427000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023042700 ((dealtime &gt;= &#x27;20230427000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230507000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023050700 ((dealtime &gt;= &#x27;20230507000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230517000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023051700 ((dealtime &gt;= &#x27;20230517000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230527000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023052700 ((dealtime &gt;= &#x27;20230527000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230606000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition p2023060600 ((dealtime &gt;= &#x27;20230606000000&#x27; ) AND </span><br><span class="line">              (dealtime &lt; &#x27;20230616000000&#x27; ) ) in userdbs,</span><br><span class="line">    partition rmd remainder in userdbs</span><br><span class="line">  extent size 4096 next size 4096 lock mode row;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">revoke all on &quot;gbasedbt&quot;.xrc_callstas from &quot;public&quot; as &quot;gbasedbt&quot;;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">create index &quot;gbasedbt&quot;.idx_xrc_callstas on &quot;gbasedbt&quot;.xrc_callstas </span><br><span class="line">    (provinceid,dealtime) using btree ;</span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>





<h5 id="xrc-callstas-表的-pt"><a href="#xrc-callstas-表的-pt" class="headerlink" title="xrc_callstas 表的 pt"></a>xrc_callstas 表的 pt</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br></pre></td><td class="code"><pre><span class="line">gbasedbt@sc-cd-gxz-vas_eb-vcrbt-xlgw-db001-001:/home/gbasedbt&gt;oncheck -pt newmin:xrc_callstas </span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">TBLspace Report for newmin:gbasedbt.xrc_callstas</span><br><span class="line"></span><br><span class="line">                  Table fragment partition p2023012700 in DBspace userdbs</span><br><span class="line"></span><br><span class="line">    Physical Address               6:197330</span><br><span class="line">    Creation date                  12/18/2022 02:50:02</span><br><span class="line">    TBLspace Flags                 902        Row Locking</span><br><span class="line">                                              TBLspace contains VARCHARS</span><br><span class="line">                                              TBLspace use 4 bit bit-maps</span><br><span class="line">    Maximum row size               1536      </span><br><span class="line">    Number of special columns      7         </span><br><span class="line">    Number of keys                 0         </span><br><span class="line">    Number of extents              1         </span><br><span class="line">    Current serial value           1         </span><br><span class="line">    Current SERIAL8 value          1         </span><br><span class="line">    Current BIGSERIAL value        1         </span><br><span class="line">    Current REFID value            1         </span><br><span class="line">    Pagesize (k)                   2         </span><br><span class="line">    First extent size              2048      </span><br><span class="line">    Next extent size               2048      </span><br><span class="line">    Number of pages allocated      2048      </span><br><span class="line">    Number of pages used           1         </span><br><span class="line">    Number of data pages           0         </span><br><span class="line">    Number of rows                 0         </span><br><span class="line">    Partition partnum              6292055   </span><br><span class="line">    Partition lockid               6292055   </span><br><span class="line"></span><br><span class="line">    Extents                       </span><br><span class="line">         Logical Page     Physical Page        Size Physical Pages</span><br><span class="line">                    0          6:372783        2048       2048</span><br><span class="line"></span><br><span class="line">                  Table fragment partition p2023020600 in DBspace userdbs</span><br><span class="line"></span><br><span class="line">    Physical Address               6:140890</span><br><span class="line">    Creation date                  12/28/2022 02:50:02</span><br><span class="line">    TBLspace Flags                 902        Row Locking</span><br><span class="line">                                              TBLspace contains VARCHARS</span><br><span class="line">                                              TBLspace use 4 bit bit-maps</span><br><span class="line">    Maximum row size               1536      </span><br><span class="line">    Number of special columns      7         </span><br><span class="line">    Number of keys                 0         </span><br><span class="line">    Number of extents              1         </span><br><span class="line">    Current serial value           1         </span><br><span class="line">    Current SERIAL8 value          1         </span><br><span class="line">    Current BIGSERIAL value        1         </span><br><span class="line">    Current REFID value            1         </span><br><span class="line">    Pagesize (k)                   2         </span><br><span class="line">    First extent size              2048      </span><br><span class="line">    Next extent size               2048      </span><br><span class="line">    Number of pages allocated      2048      </span><br><span class="line">    Number of pages used           122       </span><br><span class="line">    Number of data pages           121       </span><br><span class="line">    Number of rows                 362       </span><br><span class="line">    Partition partnum              6291845   </span><br><span class="line">    Partition lockid               6292055   </span><br><span class="line"></span><br><span class="line">    Extents                       </span><br><span class="line">         Logical Page     Physical Page        Size Physical Pages</span><br><span class="line">                    0          6:507070        2048       2048</span><br><span class="line"></span><br></pre></td></tr></table></figure>







<h5 id="af堆栈记录"><a href="#af堆栈记录" class="headerlink" title="af堆栈记录"></a>af堆栈记录</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br></pre></td><td class="code"><pre><span class="line">03:35:01  Context ptr = 0x000000000210bf00</span><br><span class="line">03:35:01  Siginfo ptr = 0x000000000210c030</span><br><span class="line">03:35:01  Reg  0(R8)      0x000000004cf08208 Reg  1(R9)      0x0000000000000001</span><br><span class="line">03:35:01  Reg  2(R10)     0x000000000000000e Reg  3(R11)     0x0000000000000001</span><br><span class="line">03:35:01  Reg  4(R12)     0x000000004cf4fe08 Reg  5(R13)     0x00000000fffffffd</span><br><span class="line">03:35:01  Reg  6(R14)     0x000000004cfbc510 Reg  7(R15)     0x000000004cfced58</span><br><span class="line">03:35:01  Reg  8(RDI)     0x0000000000000000 Reg  9(RSI)     0x000000004cfd0fc0</span><br><span class="line">03:35:01  Reg 10(RBP)     0x0000000000000001 Reg 11(RBX)     0x000000004cf4f6f0</span><br><span class="line">03:35:01  Reg 12(RDX)     0x000000004cfcee88 Reg 13(RAX)     0x000010000799001d</span><br><span class="line">03:35:01  Reg 14(RCX)     0x00000000006000aa Reg 15(RSP)     0x000000004cf08250</span><br><span class="line">03:35:01  Reg 16(RIP)     0x00000000008525b1 Reg 17(EFL)     0x0000000000010202</span><br><span class="line">03:35:01  Reg 18(CSGSFS)  0x0000000000000033 Reg 19(ERR)     0x0000000000000004</span><br><span class="line">03:35:01  Reg 20(TRAPNO)  0x000000000000000e Reg 21(OLDMASK) 0x0000000000000000</span><br><span class="line">03:35:01  Reg 22(CR2)     0x0000100007990025</span><br><span class="line">03:35:01  </span><br><span class="line">03:35:01  GBase Database Server Version 12.10.FC4G1AEE Software Serial Number AAA#B000000</span><br><span class="line"></span><br><span class="line">03:35:01  Assert Failed: Exception Caught. Type: MT_EX_OS, Context: mem</span><br><span class="line">03:35:01   Who: Session(221866, gbasedbt@sc-cd-gxz-vas_eb-vcrbt-xlgw-db001-002, 71612, 0x48e60e08)</span><br><span class="line">		Thread(221914, sqlexec, 48e34768, 8)</span><br><span class="line">		File: mtex.c Line: 424</span><br><span class="line">03:35:01   Action: Please notify GBASE Techical Support.</span><br><span class="line">03:35:01  SHM Globals and Master Pool/Master Block Adresses:</span><br><span class="line"></span><br><span class="line">03:35:01  shmcb =           0x000000004405a618</span><br><span class="line">03:35:01  rhead =           0x00000000440c5800</span><br><span class="line">03:35:01  pool list =       0x000000004405a6f0</span><br><span class="line">03:35:01  block pool list = 0x00000000440bfef8</span><br><span class="line">03:35:01  TRANSP =          0x0000000048e60e08</span><br><span class="line">03:35:01  PARTP =           0x000000004a177a18</span><br><span class="line">03:35:01  PARTNP =          0x000000004a177b28</span><br><span class="line">03:35:01  OPENP =           0x000000004ceb3428</span><br><span class="line">03:35:01  FILEP =           0x000000004cf14ac8</span><br><span class="line">03:35:01  Raw hex dump of stack located in /gbase/tmp/af.66c27ce5.rawstk</span><br><span class="line">03:35:01  Stack for thread: 221914 sqlexec</span><br><span class="line"></span><br><span class="line"> base: 0x000000004cee9000</span><br><span class="line">  len:   135168</span><br><span class="line">   pc: 0x00000000015466cf</span><br><span class="line">  tos: 0x000000000210abf0</span><br><span class="line">state: running</span><br><span class="line">   vp: 8</span><br><span class="line"></span><br><span class="line">0x00000000015466cf (oninit) afstack</span><br><span class="line">0x0000000001548d67 (oninit) afhandler</span><br><span class="line">0x000000000154906e (oninit) affail_interface</span><br><span class="line">0x000000000154d732 (oninit) mt_ex_throw_sig</span><br><span class="line">0x00000000014e43d0 (oninit) afsig_handler</span><br><span class="line">0x00007f28e8c2a630 (Linux) &lt;signal frame&gt;</span><br><span class="line">0x00000000008525b1 (oninit) opfr_term</span><br><span class="line">0x0000000000852e1a (oninit) opfr_expr</span><br><span class="line">0x00000000008534a7 (oninit) fr_rem</span><br><span class="line">0x0000000000853a0d (oninit) opfr_remove</span><br><span class="line">0x00000000008558fd (oninit) opinit</span><br><span class="line">0x0000000000858af3 (oninit) op_opinit</span><br><span class="line">0x000000000085ab33 (oninit) sqoptim</span><br><span class="line">0x0000000000ab74a7 (oninit) bldstructs</span><br><span class="line">0x0000000000aca453 (oninit) sqcmd</span><br><span class="line">0x0000000000acad7a (oninit) sq_cmnd</span><br><span class="line">0x0000000000acae04 (oninit) sq_prepare</span><br><span class="line">0x0000000000ba5138 (oninit) sqmain</span><br><span class="line">0x00000000016520d4 (oninit) spawn_thread</span><br><span class="line">0x0000000001542bc3 (oninit) th_init_initgls</span><br><span class="line">0x0000000001506a5f (oninit) startup</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> ucontext: 0x000000000210bf00</span><br><span class="line">  siginfo: 0x000000000210c030</span><br><span class="line">           si_signo: 11  si_code: 1   si_errno: 0 si_pid: 127467557 si_uid: 4096 </span><br><span class="line">           si_addr: 0x0000100007990025 si_value: 0x0000000000000000  si_fd: 0</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">03:35:01   See Also: /gbase/tmp/af.66c27ce5</span><br><span class="line"></span><br><span class="line">---------------------------------</span><br><span class="line">Begin System Alarm Program Output</span><br><span class="line">---------------------------------</span><br><span class="line"></span><br><span class="line">Assertion Failure Type:	FAILURE</span><br><span class="line">Host Name:		sc-cd-gxz-vas_eb-vcrbt-xlgw-db001-002</span><br><span class="line">Database Server Name:	hdr2</span><br><span class="line">Time of failure:	Thu Apr 27 03:35:01 CST 2023</span><br><span class="line">AF file:		/gbase/tmp/af.66c27ce5</span><br><span class="line">Shared memory file:	None</span><br><span class="line">System Blocking:	OFF</span><br><span class="line"></span><br></pre></td></tr></table></figure>



<h2 id="目前宕机原因推断"><a href="#目前宕机原因推断" class="headerlink" title="目前宕机原因推断"></a>目前宕机原因推断</h2><ul>
<li>宕机应该是由于由于主节点rename提交后系统并不存在xrc_callstas表。</li>
<li>HDR节点在rename提交的时间上执行了select导致HDR宕机。</li>
</ul>
<h2 id="后续测试和工作内容"><a href="#后续测试和工作内容" class="headerlink" title="后续测试和工作内容"></a>后续测试和工作内容</h2><ul>
<li>搭建模拟环境测试复现HDR宕机。</li>
<li>找研发查看源码File: mtex.c Line: 424。</li>
<li>找研发帮忙进一步确定和解问题。</li>
</ul>
<h2 id="目前整改建议"><a href="#目前整改建议" class="headerlink" title="目前整改建议"></a>目前整改建议</h2><ul>
<li>建议不要再生产时间段修改表结构。</li>
<li>修改表结构需要有单独的变更维护时间窗口。</li>
</ul>
<h2 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h2><h5 id="日志类型"><a href="#日志类型" class="headerlink" title="日志类型"></a>日志类型</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">BLDCL		构建tblspace。</span><br><span class="line">PTCOLUMN	将特殊列添加到片段中。</span><br><span class="line">CHALLOC		区块范围分配。</span><br><span class="line">PTEXTEND	Tblspace扩展。</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">PTRENAME	重命名表。</span><br><span class="line"></span><br><span class="line">PNLOCKID  	更改表空间锁定。</span><br><span class="line">UNIQID		当一个新的SERIAL值被分配给一行时记录。</span><br><span class="line">PERASE		预擦旧文件。</span><br><span class="line">HDELETE		删除主行。</span><br><span class="line">DELITEM		从索引中删除项目。</span><br><span class="line">PBDELETE	删除tblspace Blob页。</span><br><span class="line"></span><br></pre></td></tr></table></figure>



<h5 id="收集生产onlog"><a href="#收集生产onlog" class="headerlink" title="收集生产onlog"></a>收集生产onlog</h5><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">onlog -n 879 &gt; 879min ;</span><br><span class="line">onlog -n 879 -l &gt; 879max ;</span><br><span class="line">tar zcvf 879.tar.gz 879min 879max </span><br><span class="line"></span><br><span class="line">oncheck -pt 0x60001a &gt; 60001a.pt</span><br><span class="line"></span><br></pre></td></tr></table></figure>




 
      <!-- reward -->
      
    </div>
    

    <!-- copyright -->
    
    <div class="declare">
      <ul class="post-copyright">
        <li>
          <i class="ri-copyright-line"></i>
          <strong>Copyright： </strong>
          
          Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
          
        </li>
      </ul>
    </div>
    
    <footer class="article-footer">
       
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://example.com/2023/04/27/HDR%E5%AE%95%E6%9C%BA%E5%88%86%E6%9E%90%E5%92%8C%E7%9B%AE%E5%89%8D%E6%8E%A8%E6%96%AD/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>  
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Bug/" rel="tag">Bug</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%AE%95%E6%9C%BA/" rel="tag">宕机</a></li></ul>

    </footer>
  </div>

   
  <nav class="article-nav">
    
      <a href="/2023/05/09/clob%E6%99%BA%E8%83%BD%E5%A4%A7%E5%AF%B9%E8%B1%A1%E6%8F%92%E5%85%A5%E6%85%A2%E9%97%AE%E9%A2%98/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            clob智能大对象插入慢问题
          
        </div>
      </a>
    
    
      <a href="/2023/04/24/%E9%94%81%E8%A1%A8%E6%95%85%E9%9A%9C%E6%97%B6%E6%8A%93%E5%8F%96%E9%94%81%E7%9B%B8%E5%85%B3%E4%BF%A1%E6%81%AF/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">锁表故障时抓取锁相关信息</div>
      </a>
    
  </nav>

  
   
  
    
</article>

</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2023-2024
        <i class="ri-heart-fill heart_icon"></i> Wang Wei
      </li>
    </ul>
    <ul>
      <li>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></span>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
      </li>
    </ul>
  </div>
</footer>    
    </main>
    <div class="float_btns">
      <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

    </div>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ww.ico" alt="朝花夕拾"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/js/jquery-3.6.0.min.js"></script>
 
<script src="/js/lazyload.min.js"></script>

<!-- Tocbot -->
 
<script src="/js/tocbot.min.js"></script>

<script>
  tocbot.init({
    tocSelector: ".tocbot",
    contentSelector: ".article-entry",
    headingSelector: "h1, h2, h3, h4, h5, h6",
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: "main",
    positionFixedSelector: ".tocbot",
    positionFixedClass: "is-position-fixed",
    fixedSidebarOffset: "auto",
  });
</script>

<script src="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.js"></script>
<link
  rel="stylesheet"
  href="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.css"
/>
<script src="https://cdn.staticfile.org/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js"></script>

<script src="/dist/main.js"></script>

<!-- ImageViewer -->

<!-- MathJax -->

<!-- Katex -->

<!-- busuanzi  -->
 
<script src="/js/busuanzi-2.3.pure.min.js"></script>
 
<!-- ClickLove -->

<!-- ClickBoom1 -->

<!-- ClickBoom2 -->

<!-- CodeCopy -->
 
<link rel="stylesheet" href="/css/clipboard.css">
 <script src="https://cdn.staticfile.org/clipboard.js/2.0.10/clipboard.min.js"></script>
<script>
  function wait(callback, seconds) {
    var timelag = null;
    timelag = window.setTimeout(callback, seconds);
  }
  !function (e, t, a) {
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '<i class="ri-file-copy-2-line"></i><span>COPY</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      $(".article pre code").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });
      clipboard.on('success', function(e) {
        let $btn = $(e.trigger);
        $btn.addClass('copied');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-checkbox-circle-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPIED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-checkbox-circle-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
      clipboard.on('error', function(e) {
        e.clearSelection();
        let $btn = $(e.trigger);
        $btn.addClass('copy-failed');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-time-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPY FAILED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-time-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
    }
    initCopyCode();
  }(window, document);
</script>
 
<!-- CanvasBackground -->

<script>
  if (window.mermaid) {
    mermaid.initialize({ theme: "forest" });
  }
</script>


    
    

  </div>
</body>

</html>